<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<h1>栏目列表</h1>
	<h3>
		<a href="?a=add&pid=0">添加顶级栏目</a>
	</h3>
	<table border="1" width="100%">
			<tr>
				<td>id</td>
				<td>PID</td>
				<td>栏目名称</td>
				<td>操作</td>
			</tr>
			<?php foreach($data as $d):?>
			<tr>
				<td><?php echo $d['id'];?></td>
				<td><?php echo $d['pid'];?></td>
				<td><?php echo $d['_cname'];?></td>
				<td>
					<a href="?a=add&pid=<?php echo $d['id'];?>">添加子栏目</a>
				</td>
			</tr>
			<?php endforeach;?>
	</table>
</body>










</html>